package hcn.mch.response;

import lombok.ToString;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * 获取访视记录
 **/
@ToString
@XmlRootElement(name = "Data")
public class VisitListFromMcsVO {

    private List<VisitInfo> records;

    @XmlElementWrapper(name = "Records")
    @XmlElement(name = "Record")
    public List<VisitInfo> getRecords() {
        return records;
    }

    public void setRecords(List<VisitInfo> records) {
        this.records = records;
    }

    @ToString
    public static class VisitInfo {

        /**
         * 访视ID
         */
        private String recordId;
        /**
         * 访视日期
         */
        private String recordDate;
        /**
         * 访视结果
         */
        private String recordResult;


        @XmlElement(name = "RecordId")
        public String getRecordId() {
            return recordId;
        }

        public void setRecordId(String recordId) {
            this.recordId = recordId;
        }

        @XmlElement(name = "RecordDate")
        public String getRecordDate() {
            return recordDate;
        }

        public void setRecordDate(String recordDate) {
            this.recordDate = recordDate;
        }

        @XmlElement(name = "RecordResult")
        public String getRecordResult() {
            return recordResult;
        }

        public void setRecordResult(String recordResult) {
            this.recordResult = recordResult;
        }
    }


}
